Tripzzy\Core\Helpers\Coupon B

Total Complexity 79
Dependencies 4
Dependents 5
Total lines 591
Lines of code 343
Logical lines of code 218
Comment lines 181
Methods 22
Properties 4

Methods 22

Method Rating Maintainability Complexity Lines of code
validate_and_apply()
A
37 12 83
validate()
A
46 10 40
update()
S
48 6 32
is_expired()
S
54 6 22
is_valid_user()
S
55 5 20
get_coupon_status()
S
59 4 15
is_limit_exceed()
S
61 4 13
get_coupon_id_by_code()
S
55 3 22
set()
S
58 3 16
__construct()
S
62 3 12
get_coupon_limit()
S
73 3 4
get()
S
65 3 10
get_coupon_uses()
S
71 3 5
get_coupon_expiry()
S
66 3 8
get_coupon_type()
S
74 2 4
get_coupon_value()
S
74 2 4
get_applied_coupon_code()
S
74 2 4
default_data()
S
62 1 12
get_post_status()
S
82 1 3
get_id()
S
82 1 3
clear()
S
69 1 7
get_applied_coupons()
S
76 1 4